<?php
session_start();

require "database.php";
require "phim.php";
$data=new Database;
$phim=new Phim;

$maphim=$_GET['id'];
$sql="select * from phim where maphim='".$maphim."'";
$dt=$phim->danhsach_phim_pt($sql);
$_SESSION["tenphim"]=$dt[0]['tenphim'];
$phim->xoa_phim($maphim);
header("location:../admin_danhsach_tapphim.php?tenphim=".$_SESSION["tenphim"]);

?>